<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>小型超市销售决策系统</title>
    <link href="${pageContext.request.contextPath }/statics/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/statics/css/font-awesome.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/statics/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/statics/css/nprogress.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/statics/css/custom.min.css" rel="stylesheet">
</head>
<script type="text/javascript">
    function get(empId) {
        window.location.href = "${pageContext.request.contextPath }/employee/getEmployee?id=" + empId;
    }
</script>
<body class="nav-md">
<div class="container body" style="overflow-x: hidden;overflow-y: hidden; ">
    <div class="main_container">
        <div class="col-md-3 left_col">
            <div class="left_col scroll-view">
                <div class="navbar nav_title" style="border: 0;">
                    <a href="${pageContext.request.contextPath }/employee/flatform/main" class="site_title"><i
                            class="fa fa-paw"></i> <span>Welcome!</span></a>
                </div>

                <div class="clearfix"></div>

                <!-- menu profile quick info -->
                <div class="profile clearfix">
                    <h4 class="text-info">小型超市销售决策系统</h4>
                </div>

                <br/>
                <!-- sidebar menu -->
                <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
                    <div class="menu_section">
                        <ul class="nav side-menu">
                            <li><a><i class="fa fa-home"></i> 进货退货管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li>
                                        <a href="${pageContext.request.contextPath }/employee/flatform/imCommodity/getAll">进货信息</a>
                                    </li>
                                    <li>
                                        <a href="${pageContext.request.contextPath }/employee/flatform/exCommodity/getAll">退货信息</a>
                                    </li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-edit"></i> 商品信息管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li>
                                        <a href="${pageContext.request.contextPath }/employee/flatform/commodity/getAll">商品信息</a>
                                    </li>
                                    <li>
                                        <a href="${pageContext.request.contextPath }/employee/flatform/CommodityType/getAll">商品类别</a>
                                    </li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-desktop"></i> 仓库管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="${pageContext.request.contextPath }/employee/flatform/stock/getAll">仓库信息</a>
                                    </li>
                                    <li>
                                        <a href="${pageContext.request.contextPath }/employee/flatform/stock/stockWithComNum">库存预警</a>
                                    </li>
                                    <li>
                                        <a href="${pageContext.request.contextPath }/employee/flatform/stock/stockWithComData">临期产品</a>
                                    </li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-table"></i> 销售管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="${pageContext.request.contextPath }/employee/flatform/sales/getAll">销售信息</a>
                                    </li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-clone"></i>基本信息管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li>
                                        <a href="${pageContext.request.contextPath }/employee/flatform/supplier/getAll">供应商信息</a>
                                    </li>
                                    <li>
                                        <a onclick="get(${employeeSession.id})"> 个人信息</a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- /menu footer buttons -->
            </div>
        </div>
        <div class="top_nav">
            <div class="nav_menu">
                <nav>
                    <div class="nav toggle">
                        <a id="menu_toggle"><i class="fa fa-bars"></i></a>
                    </div>

                    <ul class="nav navbar-nav navbar-right">
                        <li class="">
                            <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown"
                               aria-expanded="false">
                                <span>${employeeSession.empType}</span>
                                <br/>
                                <span>&nbsp;&nbsp;${employeeSession.empName}</span>
                            </a>
                            <ul class="dropdown-menu dropdown-usermenu pull-right">
                                <li>
                                    <a href="${pageContext.request.contextPath }/employee/logout">
                                        <i class="fa fa-sign-out pull-right"></i>退出
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>